package com.jkt.rms.dataservice.impl;

import java.util.List;

import com.jkt.rms.business.Location;
import com.jkt.rms.commons.utils.RMSException;
import com.jkt.rms.dataservice.AbstractDataService;
import com.jkt.rms.dataservice.LocationDataService;

public class LocationDataServiceImpl extends AbstractDataService<Location> implements LocationDataService  {

	@Override
	protected Class<Location> getReferenceClass() {
		return Location.class;
	}

	@SuppressWarnings("unchecked")
	public List<Location> getActiveLocationList() throws RMSException{
		return getSession().createQuery("from Location").list();
	}
	
}
